<?php
declare (strict_types = 1);

namespace app\admin;
use app\BaseController;
use think\App;
use think\exception\ValidateException;
use think\Validate;

/**
 * 控制器基础类
 */
class AdminController extends BaseController
{
    public function __construct(App $app)
    {
        parent::__construct($app);
        $adminInfo= request()->session();
        if(!isset($adminInfo) || empty($adminInfo)){
            return redirect(url('login/login')->build())->send();
        }
    }
}
